home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / mawk.zip / SIZES.H < prev    next >
C/C++ Source or Header  |  1991-04-07  |  1KB  |  57 lines

  1.  
  2. /********************************************
  3. sizes.h
  4. copyright 1991, Michael D. Brennan
  5.  
  6. This is a source file for mawk, an implementation of
  7. the Awk programming language as defined in
  8. Aho, Kernighan and Weinberger, The AWK Programming Language,
  9. Addison-Wesley, 1988.
  10.  
  11. See the accompaning file, LIMITATIONS, for restrictions
  12. regarding modification and redistribution of this
  13. program in source or binary form.
  14. ********************************************/
  15.  
  16. /* $Log:    sizes.h,v $
  17.  * Revision 2.1  91/04/08  08:24:09  brennan
  18.  * VERSION 0.97
  19.  * 
  20. */
  21.  
  22. /*  sizes.h  */
  23.  
  24. #ifndef  SIZES_H
  25. #define  SIZES_H
  26.  
  27. #define  HASH_PRIME  53
  28. #define  A_HASH_PRIME 37
  29.  
  30.  
  31. #if      SMALL_EVAL_STACK
  32. /* allow some put not a lot of recursion */
  33. #define  EVAL_STACK_SIZE  64
  34. #else
  35. #define  EVAL_STACK_SIZE  256
  36. #endif
  37.  
  38. #define  MAX_COMPILE_ERRORS  5 /* quit if more than 4 errors */
  39.  
  40. #define  BUFFSZ    4096   /* input buffer size */
  41.  
  42. #define  MAX_LOOP_DEPTH   20
  43. /* should never be exceeded, doesn't matter if its too
  44.    big (unless gross) because resources sized by it are freed */
  45.  
  46. #define  MAX_FIELD   100  /* biggest field number */
  47. #define  SPRINTF_SZ   300  /* biggest sprintf string length */
  48.  
  49. /* the size of the temp buffer in front of main_buff */
  50. #define  PTR_SZ   sizeof(PTR)
  51. #define  TEMP_BUFF_SZ  (MAX_FIELD*PTR_SZ > SPRINTF_SZ ?\
  52.         MAX_FIELD*PTR_SZ : SPRINTF_SZ )
  53.  
  54. #define  PAGE_SZ    1024  /* max instructions for a block */
  55.  
  56. #endif   /* SIZES_H */
  57.